<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<table id="treeGrid" class="easyui-treegrid"
	data-options="
		url: 'device/list',
		method: 'get',
		rownumbers: true,
		idField: 'id',
		treeField: 'name',
		fit:true,
		fitColumns:true,
		toolbar:[{
			text:'添加',
			iconCls:'icon-add',
			handler:function(){openAddDialog()}
		},'-',{
			text:'修改',
			iconCls:'icon-edit',
			handler:function(){openEditDialog()}
		},'-',{
			text:'删除',
			iconCls:'icon-remove',
			handler:function(){openDeleteDialog()}
		},'-',{
			text:'锁定',
			iconCls:'icon-lock',
			handler:function(){openLockDialog()}
		},'-',{
			text:'解锁',
			iconCls:'icon-lockopen',
			handler:function(){openUnLockDialog()}
		}]
	">
<thead>
	<tr>
		<th data-options="field:'id',width:80">ID</th>
		<th data-options="field:'dept_name',width:300">检测单位</th>
		<th data-options="field:'name',width:300">设备名称</th>
		<th data-options="field:'type',width:300">设备类型</th>
		<th data-options="field:'dev_num',width:300">设备型号</th>
		<th data-options="field:'zheng_num',width:300">证书编号</th>
		<th data-options="field:'time',width:300">证书有效期</th>
		<th data-options="field:'jianding',width:300">检定单位</th>
		<th data-options="field:'lock',width:80,align:'right'">是否锁定</th>
	</tr>
</thead>
</table>